package com.sql.weeego.bean.base;

/**
 * UchomeUserappId entity. @author MyEclipse Persistence Tools
 */

public class UchomeUserappId implements java.io.Serializable {

	// Fields

	private Integer appid;
	private String appname;
	private Integer uid;
	private Boolean privacy;
	private Boolean allowsidenav;
	private Boolean allowfeed;
	private Boolean allowprofilelink;
	private Boolean narrow;
	private String profilelink;
	private String myml;
	private Short displayorder;

	// Constructors

	/** default constructor */
	public UchomeUserappId() {
	}

	/** full constructor */
	public UchomeUserappId(Integer appid, String appname, Integer uid,
			Boolean privacy, Boolean allowsidenav, Boolean allowfeed,
			Boolean allowprofilelink, Boolean narrow, String profilelink,
			String myml, Short displayorder) {
		this.appid = appid;
		this.appname = appname;
		this.uid = uid;
		this.privacy = privacy;
		this.allowsidenav = allowsidenav;
		this.allowfeed = allowfeed;
		this.allowprofilelink = allowprofilelink;
		this.narrow = narrow;
		this.profilelink = profilelink;
		this.myml = myml;
		this.displayorder = displayorder;
	}

	// Property accessors

	public Integer getAppid() {
		return this.appid;
	}

	public void setAppid(Integer appid) {
		this.appid = appid;
	}

	public String getAppname() {
		return this.appname;
	}

	public void setAppname(String appname) {
		this.appname = appname;
	}

	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public Boolean getPrivacy() {
		return this.privacy;
	}

	public void setPrivacy(Boolean privacy) {
		this.privacy = privacy;
	}

	public Boolean getAllowsidenav() {
		return this.allowsidenav;
	}

	public void setAllowsidenav(Boolean allowsidenav) {
		this.allowsidenav = allowsidenav;
	}

	public Boolean getAllowfeed() {
		return this.allowfeed;
	}

	public void setAllowfeed(Boolean allowfeed) {
		this.allowfeed = allowfeed;
	}

	public Boolean getAllowprofilelink() {
		return this.allowprofilelink;
	}

	public void setAllowprofilelink(Boolean allowprofilelink) {
		this.allowprofilelink = allowprofilelink;
	}

	public Boolean getNarrow() {
		return this.narrow;
	}

	public void setNarrow(Boolean narrow) {
		this.narrow = narrow;
	}

	public String getProfilelink() {
		return this.profilelink;
	}

	public void setProfilelink(String profilelink) {
		this.profilelink = profilelink;
	}

	public String getMyml() {
		return this.myml;
	}

	public void setMyml(String myml) {
		this.myml = myml;
	}

	public Short getDisplayorder() {
		return this.displayorder;
	}

	public void setDisplayorder(Short displayorder) {
		this.displayorder = displayorder;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof UchomeUserappId))
			return false;
		UchomeUserappId castOther = (UchomeUserappId) other;

		return ((this.getAppid() == castOther.getAppid()) || (this.getAppid() != null
				&& castOther.getAppid() != null && this.getAppid().equals(
				castOther.getAppid())))
				&& ((this.getAppname() == castOther.getAppname()) || (this
						.getAppname() != null
						&& castOther.getAppname() != null && this.getAppname()
						.equals(castOther.getAppname())))
				&& ((this.getUid() == castOther.getUid()) || (this.getUid() != null
						&& castOther.getUid() != null && this.getUid().equals(
						castOther.getUid())))
				&& ((this.getPrivacy() == castOther.getPrivacy()) || (this
						.getPrivacy() != null
						&& castOther.getPrivacy() != null && this.getPrivacy()
						.equals(castOther.getPrivacy())))
				&& ((this.getAllowsidenav() == castOther.getAllowsidenav()) || (this
						.getAllowsidenav() != null
						&& castOther.getAllowsidenav() != null && this
						.getAllowsidenav().equals(castOther.getAllowsidenav())))
				&& ((this.getAllowfeed() == castOther.getAllowfeed()) || (this
						.getAllowfeed() != null
						&& castOther.getAllowfeed() != null && this
						.getAllowfeed().equals(castOther.getAllowfeed())))
				&& ((this.getAllowprofilelink() == castOther
						.getAllowprofilelink()) || (this.getAllowprofilelink() != null
						&& castOther.getAllowprofilelink() != null && this
						.getAllowprofilelink().equals(
								castOther.getAllowprofilelink())))
				&& ((this.getNarrow() == castOther.getNarrow()) || (this
						.getNarrow() != null
						&& castOther.getNarrow() != null && this.getNarrow()
						.equals(castOther.getNarrow())))
				&& ((this.getProfilelink() == castOther.getProfilelink()) || (this
						.getProfilelink() != null
						&& castOther.getProfilelink() != null && this
						.getProfilelink().equals(castOther.getProfilelink())))
				&& ((this.getMyml() == castOther.getMyml()) || (this.getMyml() != null
						&& castOther.getMyml() != null && this.getMyml()
						.equals(castOther.getMyml())))
				&& ((this.getDisplayorder() == castOther.getDisplayorder()) || (this
						.getDisplayorder() != null
						&& castOther.getDisplayorder() != null && this
						.getDisplayorder().equals(castOther.getDisplayorder())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getAppid() == null ? 0 : this.getAppid().hashCode());
		result = 37 * result
				+ (getAppname() == null ? 0 : this.getAppname().hashCode());
		result = 37 * result
				+ (getUid() == null ? 0 : this.getUid().hashCode());
		result = 37 * result
				+ (getPrivacy() == null ? 0 : this.getPrivacy().hashCode());
		result = 37
				* result
				+ (getAllowsidenav() == null ? 0 : this.getAllowsidenav()
						.hashCode());
		result = 37 * result
				+ (getAllowfeed() == null ? 0 : this.getAllowfeed().hashCode());
		result = 37
				* result
				+ (getAllowprofilelink() == null ? 0 : this
						.getAllowprofilelink().hashCode());
		result = 37 * result
				+ (getNarrow() == null ? 0 : this.getNarrow().hashCode());
		result = 37
				* result
				+ (getProfilelink() == null ? 0 : this.getProfilelink()
						.hashCode());
		result = 37 * result
				+ (getMyml() == null ? 0 : this.getMyml().hashCode());
		result = 37
				* result
				+ (getDisplayorder() == null ? 0 : this.getDisplayorder()
						.hashCode());
		return result;
	}

}